package com.mvc.dao;

import java.io.Serializable;
import java.sql.SQLException;
import java.util.List;
import java.util.Vector;

public interface EntityDao {
	public Object loadById(Class clazz, Serializable id);

	public Object loadObject(String hql);

	public void delById(Class clazz, Serializable id);

	public void saveOrUpdate(Object obj);

	public void save(Object obj);

	public List<Object> listAll(String clazz);

	public List<Object> pageListAll(String clazz, int pageNo, int pageSize);

	public int countAll(String clazz);

	public List<Object> query(String hql);
	public List<Object> query(String hql,Integer sl);
	public List<Object> pageQuery(String hql, int pageNo, int pageSize);

	public int countQuery(String hql);

	public int update(String hql);

	public String getSingleValueBySql(String sql);

	public String getUver(String sql, Object[] args);

	public int getCountValueBySql(String sql);

	public boolean executeSql(String sql);
}
